<!-- 排班管理 -->
<template>
  <div class="body_box">
    <div class="top_box">
      <el-form :inline="true" :model="formInline" class="demo-form-inline">
        <el-form-item label="员工账号：">
          <el-input
            v-model="formInline.user"
            placeholder="请输入员工账号"
            clearable
          />
        </el-form-item>

        <el-form-item label="员工姓名：">
          <el-input
            v-model="formInline.user"
            placeholder="请输入员工姓名"
            clearable
          />
        </el-form-item>

        <el-form-item label="工作模式">
          <el-select
            v-model="formInline.region"
            placeholder="请选择工作模式"
            clearable
          >
            <el-option label="Zone one" value="shanghai" />
            <el-option label="Zone two" value="beijing" />
          </el-select>
        </el-form-item>

        <el-form-item label="员工账号：">
          <el-input
            v-model="formInline.user"
            placeholder="Approved by"
            clearable
          />
        </el-form-item>

        <el-form-item label="所属机构：">
          <el-select
            v-model="formInline.region"
            placeholder="请选择所属机构"
            clearable
          >
            <el-option label="Zone one" value="shanghai" />
            <el-option label="Zone two" value="beijing" />
          </el-select>
        </el-form-item>

        <el-form-item>
          <el-button type="primary" @click="onSubmit">搜索</el-button>
          <el-button type="primary" @click="onSubmit">重置</el-button>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script setup>
import { getManagerListDataApi } from '../../api/ComposingAdministrationAndManagement';
//数据收集
const form = reactive({});

const init = () => {
  getManagerListDataApi((res) => {
    console.log(res);
  });
};
init();

const formInline = reactive({
  user: '',
  region: '',
  date: '',
});

const onSubmit = () => {
  console.log('submit!');
};
</script>

<style lang="less" scoped>
.body_box {
  width: '100%';
  height: '100%';
}
.top_box {
  border-radius: 9px;
  padding: 15px 25px 25px 20px;
  background-color: #ffff;
}
.demo-form-inline .el-input {
  --el-input-width: 410px;
}

.demo-form-inline .el-select {
  --el-select-width: 410px;
}
</style>
